import request from '@/utils/request'

export function leaveMsg(data) {
  return request({
    url: '/record/submit',
    method: 'post',
    data
  })
}
export function updateRecord(query) {
  return request({
    url: '/record/update',
    method: 'post',
    data: query
  })
}
export function getNum() {
  return request({
    url: '/record/number',
    method: 'get',
  })
}
export function fetchRecord(query) {
  return request({
    url: '/record/list',
    method: 'get',
    params: query
  })
}

